package BookTest;

public class C2Artificial extends C2Fruit{
    public C2Artificial() {}
    public C2Artificial(String variety, String colar, int price) {
        super(variety, colar, price);

    }
    @Override
    public void spendMoney(){
        int a = super.getPrice()+10;
        System.out.println("品种："+super.getVariety()+"  颜色："+super.getColar()
                +"  经过加工的水果价格为："+a);
    }
}
